class HomeRecommendEntity {
  Albumdata? _albumdata;

  Albumdata? get albumdata => _albumdata;

  HomeRecommendEntity({Albumdata? albumdata}) {
    _albumdata = albumdata;
  }

  HomeRecommendEntity.fromJson(dynamic json) {
    _albumdata = json["albumdata"] != null ? Albumdata.fromJson(json["albumdata"]) : null;
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    if (_albumdata != null) {
      map["albumdata"] = _albumdata?.toJson();
    }
    return map;
  }
}

class Albumdata {
  List<LinkData>? _linkData;

  List<LinkData>? get linkData => _linkData;

  Albumdata({List<LinkData>? linkData}) {
    _linkData = linkData;
  }

  Albumdata.fromJson(dynamic json) {
    if (json["linkData"] != null) {
      _linkData = [];
      json["linkData"].forEach((v) {
        _linkData?.add(LinkData.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    if (_linkData != null) {
      map["linkData"] = _linkData?.map((v) => v.toJson()).toList();
    }
    return map;
  }
}

class LinkData {
  int? _pid;
  int? _width;
  int? _height;
  int? _oriwidth;
  int? _oriheight;
  String? _thumbnailUrl;
  String? _fromUrl;
  String? _contSign;

  int? get pid => _pid;

  int? get width => _width;

  int? get height => _height;

  int? get oriwidth => _oriwidth;

  int? get oriheight => _oriheight;

  String? get thumbnailUrl => _thumbnailUrl;

  String? get fromUrl => _fromUrl;

  String? get contSign => _contSign;

  LinkData(
      {int? pid,
      int? width,
      int? height,
      int? oriwidth,
      int? oriheight,
      String? thumbnailUrl,
      String? fromUrl,
      String? contSign}) {
    _pid = pid;
    _width = width;
    _height = height;
    _oriwidth = oriwidth;
    _oriheight = oriheight;
    _thumbnailUrl = thumbnailUrl;
    _fromUrl = fromUrl;
    _contSign = contSign;
  }

  LinkData.fromJson(dynamic json) {
    _pid = json["pid"];
    _width = json["width"];
    _height = json["height"];
    _oriwidth = json["oriwidth"];
    _oriheight = json["oriheight"];
    _thumbnailUrl = json["thumbnailUrl"];
    _fromUrl = json["fromUrl"];
    _contSign = json["contSign"];
  }

  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["pid"] = _pid;
    map["width"] = _width;
    map["height"] = _height;
    map["oriwidth"] = _oriwidth;
    map["oriheight"] = _oriheight;
    map["thumbnailUrl"] = _thumbnailUrl;
    map["fromUrl"] = _fromUrl;
    map["contSign"] = _contSign;
    return map;
  }
}
